package org.alanlau.feign.client;

import feign.Logger;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 测试
 *
 * @author alan
 * @version 1.0
 * @date 2020/9/13 20:45
 */
@FeignClient(value = "demo-server", configuration = TestClientConfig.class)
public interface TestClient {
    /**
     * 测试
     * @author alan
     * @date 2020/9/13 22:06
     * @return  java.lang.String
     */
    @GetMapping("/test/hello")
    String hello();
}

class TestClientConfig {
    @Bean
    public Logger.Level logger() {
        return Logger.Level.FULL;
    }
}
